package com.lianwei.enums;

import lombok.AllArgsConstructor;
import lombok.Data;

/*
 *@ClassName UserCodeEnum
 *@Description 用户操作状态
 *@Author Kuiwen.Sun
 *@Date 2022/1/10 16:01
 *@Version 1.0
 */

public enum UserCodeEnum {

    CODE_TO_ERROR(240001,"接收号码不合规"),
    CODE_LIMITED(240002,"验证码发送过快"),
    CODE_ERROR(240003,"验证码错误"),
    CODE_CAPTCHA(240101,"图形验证码错误"),


    ACCOUNT_REPEAT(250001,"账号已经存在"),
    ACCOUNT_UNREGISTER(250002,"账号不存在"),
    ACCOUNT_PWD_ERROR(250003,"账号或者密码错误"),
    ACCOUNT_UNLOGIN(250004,"账号未登录"),
    ACCOUNT_ILLEGAL(250005,"账号信息不合法")
        ;

    private int code ;
    private String message;

    UserCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
